package com.mastercard.assets.flows.process;

import javax.servlet.http.HttpServletRequest;

import com.mastercard.assets.jpa.TblTareaPreimplementacion;
import com.mastercard.assets.util.dao.MasterCardDAO;
import com.mastercard.assets.web.struts.forms.FlowProcessForm;
import com.mastercard.assets.web.util.to.UserLogin;

public class FlowProcessContext
	implements
		java.io.Serializable
{
	private HttpServletRequest request ;
	private FlowProcessForm form ;
	private TblTareaPreimplementacion tblTareaPreimplementacion ;
	private int cveTareaPreimplementacion ;
	private UserLogin user ;
	
	public FlowProcessContext( HttpServletRequest request , FlowProcessForm form , int cveTareaPreimplementacion , UserLogin user )
	{
		this.request = request ;
		this.form = form ;
		this.tblTareaPreimplementacion = MasterCardDAO.findTareaPreimplementacionById( cveTareaPreimplementacion ) ;
                MasterCardDAO.closeEntityManager( ) ;
		this.cveTareaPreimplementacion = cveTareaPreimplementacion ;
		this.user = user ;
	}

	public UserLogin getUser( )
	{
		return user ;
	}

	public int getCveTareaPreimplementacion( )
	{
		return cveTareaPreimplementacion ;
	}

	public TblTareaPreimplementacion getTblTareaPreimplementacion( )
	{
		return tblTareaPreimplementacion ;
	}

	public HttpServletRequest getRequest( )
	{
		return request ;
	}

	public FlowProcessForm getForm( )
	{
		return form ;
	}
	
}
